from flask_login import UserMixin
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import Column, Integer, String

db = SQLAlchemy()

class Base(db.Model):
    __abstract__ = True

    id = Column(Integer, primary_key=True)



class User(Base, UserMixin):
    username = Column(String(32))
    password = Column(String(32))


class Student(Base):
    name = Column(String(32))
    gender = Column(String(1))
    class_name = Column(String(64))

